package org.tc.client.service;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.tc.client.entity.Shoppingcar;

import java.util.List;

@RequestMapping("/ShoppingcarService")
public interface ShoppingcarService {

    @PostMapping("/deleteShopCarById")
    int deleteShopCarById(@RequestParam("id") Integer id);

    @RequestMapping("/insertShopCar")
    int insertShopCar(@RequestBody Shoppingcar shoppingcar);

    @RequestMapping("/selectShopCarByUserId")
    List<Shoppingcar> selectShopCarByUserId(@RequestParam("userid") Integer userid);

    @PostMapping("/updateByPrimaryKey")
    int updateByPrimaryKey(@RequestBody Shoppingcar record);

    @PostMapping("/getShopByState")
    List<Shoppingcar> getShopByState(@RequestBody Shoppingcar shoppingcar);

    @PostMapping("/updShopState")
    int updShopState(@RequestBody Shoppingcar shoppingcar);
}
